<template>
  <ul class="app-settings">
    <li>
      <img :src="lang" alt="" />
      <span>语言</span>
    </li>

    <li>
      <img :src="control" alt="" />
      <span>快捷键</span>
    </li>
    <el-popover placement="right" :width="200" trigger="click" effect="dark">
      <template #reference>
        <li>
          <img :src="setting" alt="" />
          <span>设置</span>
        </li>
      </template>
      <div class="">11</div>
    </el-popover>
  </ul>
</template>

<script setup lang="ts">
import lang from '@renderer/assets/img/tools/lang.png'
import control from '@renderer/assets/img/tools/control.png'
import setting from '@renderer/assets/img/tools/setting.png'
</script>

<style lang="scss" scoped>
.app-settings {
  li {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    height: 30px;
    width: 30px;
    position: relative;
    div {
      position: absolute;
      font-weight: bolder;
      font-size: 18px;
      top: -2px;
      color: white;
    }
    img {
      height: 20px;
      transition: all 0.5s ease-in-out;
    }
    span {
      font-size: 12px;
      white-space: nowrap;
    }
  }
}
</style>
